Optimal. Leaf size=83 \[ \frac {3 i x}{2 a}+\frac {2 \cosh (c+d x)}{a d}-\frac {3 i \cosh (c+d x) \sinh (c+d x)}{2 a d}-\frac {\cosh (c+d x) \sinh ^2(c+d x)}{d (a+i a \sinh (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {2846, 2813}
\begin {gather*} \frac {2 \cosh (c+d x)}{a d}-\frac {\sinh ^2(c+d x) \cosh (c+d x)}{d (a+i a \sinh (c+d x))}-\frac {3 i \sinh (c+d x) \cosh (c+d x)}{2 a d}+\frac {3 i x}{2 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2813
Rule 2846
Rubi steps
\begin {align*} \int \frac {\sinh ^3(c+d x)}{a+i a \sinh (c+d x)} \, dx &=-\frac {\cosh (c+d x) \sinh ^2(c+d x)}{d (a+i a \sinh (c+d x))}+\frac {\int \sinh (c+d x) (2 a-3 i a \sinh (c+d x)) \, dx}{a^2}\\ &=\frac {3 i x}{2 a}+\frac {2 \cosh (c+d x)}{a d}-\frac {3 i \cosh (c+d x) \sinh (c+d x)}{2 a d}-\frac {\cosh (c+d x) \sinh ^2(c+d x)}{d (a+i a \sinh (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 109, normalized size = 1.31 \begin {gather*} \frac {\cosh (c+d x) \left (3 \sinh ^{-1}(\sinh (c+d x)) \sqrt {1+i \sinh (c+d x)}+\sqrt {1-i \sinh (c+d x)} \left (-4 i+\sinh (c+d x)-i \sinh ^2(c+d x)\right )\right )}{2 a d \sqrt {1-i \sinh (c+d x)} (-i+\sinh (c+d x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.06, size = 123, normalized size = 1.48
method | result | size |
risch | \(\frac {3 i x}{2 a}-\frac {i {\mathrm e}^{2 d x +2 c}}{8 a d}+\frac {{\mathrm e}^{d x +c}}{2 a d}+\frac {{\mathrm e}^{-d x -c}}{2 a d}+\frac {i {\mathrm e}^{-2 d x -2 c}}{8 a d}+\frac {2}{d a \left ({\mathrm e}^{d x +c}-i\right )}\) | \(95\) |
derivativedivides | \(\frac {-\frac {2 i}{-i+\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {3 i \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{2}-\frac {i}{2 \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}+\frac {16 \left (-\frac {1}{16}-\frac {i}{32}\right )}{\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1}+\frac {i}{2 \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\frac {3 i \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{2}+\frac {16 \left (\frac {1}{16}-\frac {i}{32}\right )}{\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1}}{a d}\) | \(123\) |
default | \(\frac {-\frac {2 i}{-i+\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {3 i \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{2}-\frac {i}{2 \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}+\frac {16 \left (-\frac {1}{16}-\frac {i}{32}\right )}{\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1}+\frac {i}{2 \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\frac {3 i \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{2}+\frac {16 \left (\frac {1}{16}-\frac {i}{32}\right )}{\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1}}{a d}\) | \(123\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 98, normalized size = 1.18 \begin {gather*} \frac {3 i \, {\left (d x + c\right )}}{2 \, a d} + \frac {3 i \, e^{\left (-d x - c\right )} + 20 \, e^{\left (-2 \, d x - 2 \, c\right )} + 1}{8 \, {\left (i \, a e^{\left (-2 \, d x - 2 \, c\right )} + a e^{\left (-3 \, d x - 3 \, c\right )}\right )} d} + \frac {i \, {\left (-4 i \, e^{\left (-d x - c\right )} + e^{\left (-2 \, d x - 2 \, c\right )}\right )}}{8 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 96, normalized size = 1.16 \begin {gather*} -\frac {4 \, {\left (-3 i \, d x + i\right )} e^{\left (3 \, d x + 3 \, c\right )} - 4 \, {\left (3 \, d x + 5\right )} e^{\left (2 \, d x + 2 \, c\right )} + i \, e^{\left (5 \, d x + 5 \, c\right )} - 3 \, e^{\left (4 \, d x + 4 \, c\right )} + 3 i \, e^{\left (d x + c\right )} - 1}{8 \, {\left (a d e^{\left (3 \, d x + 3 \, c\right )} - i \, a d e^{\left (2 \, d x + 2 \, c\right )}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.24, size = 175, normalized size = 2.11 \begin {gather*} \begin {cases} \frac {\left (- 32 i a^{3} d^{3} e^{5 c} e^{2 d x} + 128 a^{3} d^{3} e^{4 c} e^{d x} + 128 a^{3} d^{3} e^{2 c} e^{- d x} + 32 i a^{3} d^{3} e^{c} e^{- 2 d x}\right ) e^{- 3 c}}{256 a^{4} d^{4}} & \text {for}\: a^{4} d^{4} e^{3 c} \neq 0 \\x \left (\frac {\left (- i e^{4 c} + 2 e^{3 c} + 6 i e^{2 c} - 2 e^{c} - i\right ) e^{- 2 c}}{4 a} - \frac {3 i}{2 a}\right ) & \text {otherwise} \end {cases} + \frac {2}{a d e^{c} e^{d x} - i a d} + \frac {3 i x}{2 a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 87, normalized size = 1.05 \begin {gather*} -\frac {-\frac {12 i \, {\left (d x + c\right )}}{a} - \frac {{\left (20 \, e^{\left (2 \, d x + 2 \, c\right )} - 3 i \, e^{\left (d x + c\right )} + 1\right )} e^{\left (-2 \, d x - 2 \, c\right )}}{a {\left (e^{\left (d x + c\right )} - i\right )}} + \frac {i \, a e^{\left (2 \, d x + 2 \, c\right )} - 4 \, a e^{\left (d x + c\right )}}{a^{2}}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.35, size = 94, normalized size = 1.13 \begin {gather*} \frac {x\,3{}\mathrm {i}}{2\,a}+\frac {2}{a\,d\,\left ({\mathrm {e}}^{c+d\,x}-\mathrm {i}\right )}+\frac {{\mathrm {e}}^{c+d\,x}}{2\,a\,d}+\frac {{\mathrm {e}}^{-c-d\,x}}{2\,a\,d}+\frac {{\mathrm {e}}^{-2\,c-2\,d\,x}\,1{}\mathrm {i}}{8\,a\,d}-\frac {{\mathrm {e}}^{2\,c+2\,d\,x}\,1{}\mathrm {i}}{8\,a\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________